<%@ page contentType="text/html;charset=utf-8"  pageEncoding="UTF-8" isErrorPage="true" session="false" %>
<%@ taglib uri = "http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri = "http://www.springframework.org/tags/form" prefix="form" %>
<!DOCTYPE HTML>
<html>
  <head>
    <title>异常信息</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
  </head>
  <body>
   		<div style="margin:10px auto">
   			<p>错误代码：<%=request.getAttribute("javax.servlet.error.status_code")%></p>
			<p>错误原因：${exception.message}</p>
			<p>错误内容：</p>
			<p style="margin-left:80px;">
				<%
					StackTraceElement [] stackTraceElements = exception.getStackTrace();
					for(StackTraceElement element:stackTraceElements){
				%>
					<%=element.toString()%>
				<%
					}
				%>
			</p>
			<%-- <p>跳转到<a href="${pageContext.request.contextPath}/">首页</a>！</p> --%>
   		</div>
  </body>
</html>
